.dashboard {
  padding: 0;
}

.dashboardLoading,
.dashboardError {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  font-size: 1.2rem;
  color: #64748b;
}

.loadingSpinner {
  text-align: center;
}

.dashboardHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboardHeader h1 {
  margin: 0;
  color: #1e293b;
  font-size: 2rem;
  font-weight: 700;
}

.dateRange {
  color: #64748b;
  font-size: 0.9rem;
}

/* 概览统计卡片 */
.statsOverview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.statCard {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.statIcon {
  font-size: 2.5rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
}

.statContent h3 {
  margin: 0 0 0.5rem 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.statValue {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.statChange {
  font-size: 0.8rem;
  color: #64748b;
}

.statChange.positive {
  color: #10b981;
}

/* 主要内容区域 */
.dashboardContent {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.chartsSection,
.listsSection {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chartCard,
.listCard {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.chartCard h3,
.listCard h3 {
  margin: 0 0 1rem 0;
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 600;
}

/* 分布图表 */
.distributionChart {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.distributionItem {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.distributionLabel {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #374151;
}

.distributionBar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.distributionFill {
  height: 100%;
  background: linear-gradient(135deg, #10b981, #34d399);
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* 学生列表 */
.studentList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.studentItem {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.studentItem:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.studentAvatar {
  width: 40px;
  height: 40px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.studentInfo {
  flex: 1;
}

.studentName {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.studentMeta {
  font-size: 0.8rem;
  color: #64748b;
}

.studentDate {
  font-size: 0.8rem;
  color: #64748b;
}

/* 部门统计 */
.departmentStats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.statItem {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .statsOverview {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboardContent {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .statsOverview {
    grid-template-columns: 1fr;
  }

  .dashboardHeader {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}